<?php if(!defined('HDPHP_PATH'))exit;C('SHOW_NOTICE',FALSE);?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<title>无标题文档</title>
		<link href="http://127.0.0.1/vancl/Static/Flat/dist/css/vendor/bootstrap.min.css" rel="stylesheet">
		<!-- Loading Flat UI -->
		<link href="http://127.0.0.1/vancl/Static/Flat/dist/css/flat-ui.css" rel="stylesheet">
			
		<link href="http://127.0.0.1/vancl/Static/Admin/css/style.css" rel="stylesheet" type="text/css" />
		<script type="text/javascript" src="http://127.0.0.1/vancl/Static/Admin/js/jquery.js"></script>
		<script language="javascript">
			$(function() {
				//导航切换
				$(".imglist li").click(function() {
					$(".imglist li.selected").removeClass("selected")
					$(this).addClass("selected");
				})
				
				
				$('input[name=sort_by_bsort]').click(function(){
					$('form').submit();
				})
			})
		</script>
		<script type="text/javascript">
			$(document).ready(function() {
				$(".click").click(function() {
					$(".tip").fadeIn(200);
				});
				$(".tiptop a").click(function() {
					$(".tip").fadeOut(200);
				});
				$(".sure").click(function() {
					$(".tip").fadeOut(100);
				});
				$(".cancel").click(function() {
					$(".tip").fadeOut(100);
				});
			});
		</script>
	</head>

	<body>

		<div class="place">
			<span>位置：</span>
			<ul class="placeul">
				<li><a href="#">商品管理</a></li>
				<li><a href="#">品牌管理</a></li>
				<li><a href="#">品牌列表</a></li>
			</ul>
		</div>

		<div class="rightinfo">

			<table class="imgtable">

				<thead>
					<tr>
						<th>ID</th>
						<th width="100px;">品牌LOGO</th>
						<th>品牌名称</th>
						<th>排序</th>
						<th>是否热门</th>
						<th>操作</th>
					</tr>
				</thead>

				<tbody>
					<?php foreach ($data as $k=>$v){?>
						<tr>
							<td><?php echo $v['bid'];?></td>
							<td class="imgtd">
								<img src="http://127.0.0.1/vancl/<?php echo $v['logo'];?>" />
							</td>
							<td><?php echo $v['bname'];?></td>
							<td><?php echo $v['bsort'];?></td>
							<td>
								    <?php if($v['ishot']==1){ ?>
									<span class="fui-check" style="color:green"></span>
								<?php }else{ ?>
									<span class="fui-cross" style="color:red"></span>
								<?php } ?>
							</td>
							<td>
								<a href="<?php echo U('Edit',array('bid'=>$v['bid']));?>" class="tablelink">修改</a>
								<a href="<?php echo U('Del',array('bid'=>$v['bid']));?>" class="tablelink" onclick="if (!confirm('确认要删除吗？')) return false;">删除</a>
							</td>
						</tr>
					<?php }?>
					

				</tbody>

			</table>		

		</div>
		
		<form action="" method="post">
			<div class="pagin">
				<div class="message">
					<input type="checkbox" name="sort_by_bsort" id="sort_by_bsort"     <?php if($check==1){ ?>checked<?php } ?>  />
					<label for="sort_by_bsort">按“排序”字段进行排序（降序排列）</label>
				</div>
			</div>
		</form>

		<script type="text/javascript">
			$('.imgtable tbody tr:odd').addClass('odd');
		</script>

	</body>

</html>